import cv2
import numpy as np
# canvas=np.zeros((300,300,3),np.uint8)
# cv2.putText(canvas,'oeasy',(30,80),cv2.FONT_HERSHEY_TRIPLEX,2,
#             (0,0,255),5)
# cv2.imshow('image',canvas)
image = cv2.imread("girl.png")
#cv2.imwrite('E:\Pycharm_Project\python-mini-games\\girl.jpg',image)
h,w=image.shape[0],image.shape[1]
print(f'h:{h},w:{w}')
new_h=int(h/4)
new_w=int(w/2)
new_dimension=(new_w,new_h)
resize_image=cv2.resize(image,new_dimension,interpolation=cv2.INTER_AREA)

cv2.waitKey(0)
cv2.destroyAllWindows()